<?php
declare (strict_types = 1);

namespace app\api\controller\v1;


use think\facade\Request;
use app\api\service\StatusCode;
use app\api\service\UserToken;
use app\api\model\Course as ModelCourse;

/**
 * 教师端课程管理类
 */
class Course extends Api
{
    /**
     * 获取所有课程
     */
    public function index()
    {
        $data = ModelCourse::getCourse();
        $this->return_msg(StatusCode::SUCCESS,'查询成功', $data);
    }

}